﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Payment" Object="Payment" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="payment_edit" data-title="编辑支付方式" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString['ID']%>" data-type="<%=Payment[Type]%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">支付方式列表</a> → <b class="<%=ContentLang%>Font"><%=Payment[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Payment[Name]%>" size="30" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>简介：</th>
					<td>
						<textarea cols="70" rows="7" name="Description" class="ali-input <%=ContentLang%>Font" wrap="off"><%=Payment[Description]%></textarea>
					</td>
				</tr>
				<tr>
					<th>标志：</th>
					<td>
						<input type="text" name="Logo" value="<%=Payment[Logo]%>" size="60" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
						<a href="" target="_blank"><img src="<%=Payment[Logo]%>" height="22" alt="预览"></a>
					</td>
				</tr>
				<tr>
					<th>银行：</th>
					<td>
						<select name="Type" data-ali-widget="combo">
							<option value="FACE_TO_FACE" data-is-online="false">面对面</option>
							<option value="ALIPAY_DIRECT_PAY_BY_PC" data-is-online="true">支付宝（即时到账接口）</option>
							<option value="ALIPAY_DIRECT_PAY_BY_WAP" data-is-online="true">支付宝（手机网站接口）</option>
							<option value="ALIPAY_DIRECT_PAY_BY_BANK" data-is-online="true">支付宝（网银接口）</option>
							<option value="ALIPAY_DIRECT_PAY_BY_APP" data-is-online="true">支付宝（APP接口）</option>
							<option value="WEIXIN_PAY_BY_WAP" data-is-online="true">微信支付（网页接口）</option>
							<option value="WEIXIN_PAY_BY_APP" data-is-online="true">微信支付（APP接口）</option>
							<option value="WEIXIN_PAY_BY_MP" data-is-online="true">微信支付（小程序接口）</option>
							<option value="CHINA_BANK" data-is-online="true">网银在线</option>
							<option value="ICBC" data-is-online="false">工商银行</option>
							<option value="ABC" data-is-online="false">农业银行</option>
							<option value="CCB" data-is-online="false">建设银行</option>
							<option value="CMB" data-is-online="false">招商银行</option>
							<option value="BCM" data-is-online="false">交通银行</option>
							<option value="BOC" data-is-online="false">中国银行</option>
							<option value="CMBC" data-is-online="false">民生银行</option>
							<option value="CIB" data-is-online="false">兴业银行</option>
						</select>
					</td>
				</tr>
				<tr data-id="AccountNameRow">
					<th>账 户：</th>
					<td><input type="text" name="AccountName" value="<%=Payment[AccountName]%>" size="30" maxlength="50" class="ali-input"></td>
				</tr>
				<tr data-id="AccountRow">
					<th>账 号：</th>
					<td><input type="text" name="Account" value="<%=Payment[Account]%>" size="30" maxlength="50" class="ali-input"></td>
				</tr>
				<tr data-id="PartnerIDRow" style="display:none">
					<th>PID：</th>
					<td><input type="text" name="PartnerID" value="<%=Payment[PartnerID]%>" size="30" maxlength="50" class="ali-input"></td>
				</tr>
				<tr data-id="KeyRow" style="display:none">
					<th>KEY：</th>
					<td><input type="password" name="Key" value="<%=HttpUtility.HtmlEncode(Convert.ToString(Payment[Key]))%>" size="30" class="ali-input"></td>
				</tr>
				<tr data-id="PublicKeyRow" style="display:none">
					<th>公钥：</th>
					<td><input type="text" name="PublicKey" value="<%=HttpUtility.HtmlEncode(Convert.ToString(Payment[PublicKey]))%>" size="30" class="ali-input"></td>
				</tr>
				<tr data-id="AliPayPublicKeyRow" style="display:none">
					<th>支付宝公钥：</th>
					<td><input type="text" name="AliPayPublicKey" value="<%=HttpUtility.HtmlEncode(Convert.ToString(Payment[AliPayPublicKey]))%>" size="30" class="ali-input"></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp"></div>
	</form>
</section>